package com.google.code.sip.ucenter.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.code.sip.core.dao.Page;
import com.google.code.sip.ucenter.dao.mongo.AccountLogDaoImpl;
import com.google.code.sip.ucenter.model.AccountLog;
import com.google.code.sip.ucenter.service.AccountLogManager;

@Service("accountLogManager")
public class AccountLogManagerImpl implements AccountLogManager {

	@Autowired
	private AccountLogDaoImpl huoshowAccountLogDao;

	@Override
	public void saveHuoshowAccountLog(AccountLog huoshowAccountLog) {
		huoshowAccountLogDao.save(huoshowAccountLog);
	}

	@Override
	public Page<AccountLog> getHuoshowAccountLog(Page<AccountLog> page) {
		return huoshowAccountLogDao.findByPage(page);
	}

}
